#ifndef MISCDATA_H
#define MISCDATA_H

#include <QDebug>

typedef struct {
    int fullScreenEntryType = -1;/* 0: HomeUi  1: ImageSettingUi 2: VideoPlayerUi */
    int databaseInitState = -1;
    int currentApplyPatientNumber = -1;
    int currentSelectPatientNumber = -1;
    int imageRotateAngle = 0; /* 0: 0  1: 90  2: 180  3: 270*/
    int patientInfoEntryType = -1;/* 0: HomeUi  1: queryPatientUi */
    int hintDialogType = -1;/* 0: 请先选择一个患者 */
    QString currentImagePath;
    QString currentMp4Path;
    /* 升级标志 */
    int isUpdateFpga = -1;
    int isUpdateArm = -1;
    int isUpdateMcu = -1;
    int isUpdateSystem = -1;
    int isUpdateLogo = -1;
    int imageFreezeState = 0;/* 0:解冻 1:冻结 */
    int imageZoomIndex = 0;
    int screenshot = -1;/* -1: 关闭截图功能, 0: 开启截图功能*/
    int recordState = 0;
    bool openCrossLine = false;
} MiscDataInfo;

namespace RuntimeData {
class MiscData
{
public:
    static MiscData* getInstance();
    MiscDataInfo g_miscDataInfo;
    bool enableTempratureMonitor = false;
    void setCrossLine(bool open);
private:
    MiscData();
};
}
#endif // MISCDATA_H
